package com.orientation.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 班级
 * </p>
 *
 * @author xuandian
 * @since 2022-3-9
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_class")
@ApiModel(value="Class对象", description="班级")
public class Class implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所在学院ID")
    @TableField("COLLEGE_ID")
    private String collegeId;

    @ApiModelProperty(value = "所属专业ID")
    @TableField("MAJOR_ID")
    private String majorId;

    @ApiModelProperty(value = "班级ID")
    @TableId(value = "SID", type = IdType.ASSIGN_UUID)
    private String sid;

    @ApiModelProperty(value = "班级名称")
    @TableField("CLASS_NAME")
    private String className;

    @ApiModelProperty(value = "班级人数")
    @TableField("STUDENT_NUMBER")
    private Integer studentNumber;

    @ApiModelProperty(value = "辅导员")
    @TableField("ADVISER")
    private String adviser;

    @ApiModelProperty(value = "辅导员ID")
    @TableField("ADVISER_ID")
    private String adviserId;

    @ApiModelProperty(value = "成立时间")
    @TableField("ESTAB_DATE")
    private LocalDate estabDate;

    @ApiModelProperty(value = "学习年数")
    @TableField("YEAR_NUMBER")
    private Integer yearNumber;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_USER",fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "UPDATE_USER",fill =FieldFill.UPDATE )
    private String updateUser;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UPDATE_TIME",fill =FieldFill.UPDATE )
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("DELETED")
    private Integer deleted;

    @ApiModelProperty(value = "班级序号")
    @TableField("CLASS_CODE")
    private Integer classCode;

    @ApiModelProperty(value = "乐观锁注解字段")
    @TableField(value = "VERSION")
    @Version
    private Integer version;
}
